﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="DrugsNameSelect.aspx.cs" Inherits="EarlyWarning_DrugsNameSelect" %>
<html>
<head runat="server">
    <title></title>
     <link rel="stylesheet" type="text/css" href="../style.css" />
    <link rel="Stylesheet" type="text/css" href="../style-floating.css" />
    <link rel="Stylesheet" type="text/css" href="../Style/global.css" />
    <script type="text/jscript">
        function add(Productname,ProductId) {
            opener.insertDrugs(Productname, ProductId);
            window.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <div id="tabcontent">
    <center>
         <table border="0" width="50%">
                  <tr align="center">
                  
                      <td class="mainlist"> 药品名称:<asp:TextBox ID="txtGoods" runat="server"></asp:TextBox>
                           <asp:Button ID="btnEnter" runat="server" Text="查询" onclick="btnEnter_Click"/>
                      </td>
                  </tr>
                  <tr align="center">
                    <td>
                        <asp:GridView ID="gridInfo" runat="server" AutoGenerateColumns="false" 
                            CssClass="mainlist" Width="100%">
                        <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <ItemTemplate>
                                <%# Container.DataItemIndex+1+(AspNetPager1.CurrentPageIndex-1)*AspNetPager1.PageSize %>
                            </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="药品名称">
                            <ItemTemplate>
                                <a href="javascript:add('<%#Eval("ProductName") %>','<%#Eval("GoodsID") %>')" ><%#Eval("ProductName") %></a>
                            </ItemTemplate>
                         </asp:TemplateField>
                    </Columns>
              </asp:GridView>
                    </td>
                  </tr>
              </table>
              </center>
    </div>
     <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
            >
        </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
